package com.navi.loaddata.core.gpEntity.hisToGP;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "m_bis_data_d", schema = "dm", catalog = "qmsprd")
public class MBisDataD {
    private String dataSeqId;
    private String unqSeqId;
    private String dataCate;
    private String ext1;
    private String ext2;
    private String ext3;
    private String ext4;
    private String ext5;
    private String ext6;
    private String ext7;
    private String ext8;
    private String ext9;
    private String dataDesc;
    private String evtUser;
    private Timestamp evtTimestamp;

    @Id
    @Column(name = "data_seq_id")
    public String getDataSeqId() {
        return dataSeqId;
    }

    public void setDataSeqId(String dataSeqId) {
        this.dataSeqId = dataSeqId;
    }

    @Basic
    @Column(name = "unq_seq_id")
    public String getUnqSeqId() {
        return unqSeqId;
    }

    public void setUnqSeqId(String unqSeqId) {
        this.unqSeqId = unqSeqId;
    }

    @Basic
    @Column(name = "data_cate")
    public String getDataCate() {
        return dataCate;
    }

    public void setDataCate(String dataCate) {
        this.dataCate = dataCate;
    }

    @Basic
    @Column(name = "ext_1")
    public String getExt1() {
        return ext1;
    }

    public void setExt1(String ext1) {
        this.ext1 = ext1;
    }

    @Basic
    @Column(name = "ext_2")
    public String getExt2() {
        return ext2;
    }

    public void setExt2(String ext2) {
        this.ext2 = ext2;
    }

    @Basic
    @Column(name = "ext_3")
    public String getExt3() {
        return ext3;
    }

    public void setExt3(String ext3) {
        this.ext3 = ext3;
    }

    @Basic
    @Column(name = "ext_4")
    public String getExt4() {
        return ext4;
    }

    public void setExt4(String ext4) {
        this.ext4 = ext4;
    }

    @Basic
    @Column(name = "ext_5")
    public String getExt5() {
        return ext5;
    }

    public void setExt5(String ext5) {
        this.ext5 = ext5;
    }

    @Basic
    @Column(name = "ext_6")
    public String getExt6() {
        return ext6;
    }

    public void setExt6(String ext6) {
        this.ext6 = ext6;
    }

    @Basic
    @Column(name = "ext_7")
    public String getExt7() {
        return ext7;
    }

    public void setExt7(String ext7) {
        this.ext7 = ext7;
    }

    @Basic
    @Column(name = "ext_8")
    public String getExt8() {
        return ext8;
    }

    public void setExt8(String ext8) {
        this.ext8 = ext8;
    }

    @Basic
    @Column(name = "ext_9")
    public String getExt9() {
        return ext9;
    }

    public void setExt9(String ext9) {
        this.ext9 = ext9;
    }

    @Basic
    @Column(name = "data_desc")
    public String getDataDesc() {
        return dataDesc;
    }

    public void setDataDesc(String dataDesc) {
        this.dataDesc = dataDesc;
    }

    @Basic
    @Column(name = "evt_user")
    public String getEvtUser() {
        return evtUser;
    }

    public void setEvtUser(String evtUser) {
        this.evtUser = evtUser;
    }

    @Basic
    @Column(name = "evt_timestamp")
    public Timestamp getEvtTimestamp() {
        return evtTimestamp;
    }

    public void setEvtTimestamp(Timestamp evtTimestamp) {
        this.evtTimestamp = evtTimestamp;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MBisDataD mBisDataD = (MBisDataD) o;
        return Objects.equals(dataSeqId, mBisDataD.dataSeqId) &&
                Objects.equals(unqSeqId, mBisDataD.unqSeqId) &&
                Objects.equals(dataCate, mBisDataD.dataCate) &&
                Objects.equals(ext1, mBisDataD.ext1) &&
                Objects.equals(ext2, mBisDataD.ext2) &&
                Objects.equals(ext3, mBisDataD.ext3) &&
                Objects.equals(ext4, mBisDataD.ext4) &&
                Objects.equals(ext5, mBisDataD.ext5) &&
                Objects.equals(ext6, mBisDataD.ext6) &&
                Objects.equals(ext7, mBisDataD.ext7) &&
                Objects.equals(ext8, mBisDataD.ext8) &&
                Objects.equals(ext9, mBisDataD.ext9) &&
                Objects.equals(dataDesc, mBisDataD.dataDesc) &&
                Objects.equals(evtUser, mBisDataD.evtUser) &&
                Objects.equals(evtTimestamp, mBisDataD.evtTimestamp);
    }

    @Override
    public int hashCode() {

        return Objects.hash(dataSeqId, unqSeqId, dataCate, ext1, ext2, ext3, ext4, ext5, ext6, ext7, ext8, ext9, dataDesc, evtUser, evtTimestamp);
    }
}
